package com.dfec.book.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dfec.book.entity.BookCategoryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 图书类别dao层
 *
 * @author tangrg
 * @email 1446232546@qq.com
 * @date 2025-06-2025/6/18 10:37:11
 */
@Mapper
public interface BookCategoryDao extends BaseMapper<BookCategoryEntity> {


    /**
     *  分页查询
     * @param page
     * @param bookCategoryEntity
     * @return
     */
    IPage<BookCategoryEntity> selectPage(@Param("page") IPage<BookCategoryEntity> page, @Param("bookCategoryEntity") BookCategoryEntity bookCategoryEntity);


    /**
     * 根据类别名称查询类别
     * @param categoryName  类别名称
     * @return
     */
    BookCategoryEntity selectByName(String categoryName);
}
